import Vue from 'vue'
import App from './App.vue'
// import router from './router'

import VueRouter from './MyRouter'
Vue.config.productionTip = false
Vue.use(VueRouter)
const router = new VueRouter({
  routes: [
    {
      path: '/p1',
      name: 'Page1',
      component: () => import('./views/Page1.vue')
    },
    {
      path: '/p3',
      name: 'Page3',
      component: () => import('./views/Page3.vue')
    }
  ]
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
